home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / TeX / Makefile.bibtex < prev    next >
Makefile  |  1994-08-01  |  1KB  |  56 lines

  1. # This file makes BibTeX.
  2.  
  3. SITEDIR=..
  4. CC=cc -cckr
  5. OPT=-g
  6. CFLAGS=$(OPT) -I$(SITEDIR) -DBibTeX
  7. LDFLAGS=
  8. LOADLIBES=
  9. SHELL=/bin/sh
  10.  
  11. .SUFFIXES:
  12. .SUFFIXES: .o .c .p .ch
  13. .p.c:
  14.         $(SHELL) ./convert $*.p $*.c
  15. .ch.p:
  16.         ../web/tangle $*.web $*.ch
  17. .c.o:
  18.         $(CC) $(CFLAGS) -c $*.c
  19.  
  20. # Routines used everywhere.
  21. commondefines=../common/common.defines ../common/texmf.defines
  22. commonh=../common/extra.h ../common/common.h
  23. commono=../common/alloca.o ../common/extra.o ../common/main.o
  24.  
  25. # Routines also used in TeX and Metafont (only).
  26. extrac=../common/fileio.c
  27. extrah=../common/fileio.h
  28. extrao=fileio.o
  29.  
  30.  
  31. default:    all
  32.  
  33. all:        bibtex
  34.  
  35.  
  36. bibtex:        bibtex.o $(commono) $(extrao)
  37.         $(CC) -o bibtex $(LDFLAGS) bibtex.o $(commono) $(extrao) \
  38.                   $(LOADLIBES)
  39. bibtex.o:    bibtex.c $(commonh) $(extrah)
  40.         $(CC) $(CFLAGS) -Dbswap=bswapp -c bibtex.c
  41. bibtex.c:    bibtex.p $(commondefines) convert
  42. bibtex.p:    bibtex.web bibtex.ch
  43.  
  44. $(extrao):    $(extrac) $(extrah)
  45.         $(CC) $(CFLAGS) -I. -c $(extrac)
  46.  
  47.  
  48. clean:
  49.         rm -f bibtex.pool *.o bibtex
  50.  
  51. veryclean:    clean
  52.         rm -f bibtex.p bibtex.c bibtex.h coerce.h
  53.         rm -f \#*\# *~ *.bak *.ckp core
  54.